home *** CD-ROM | disk | FTP | other *** search
/ Kunsthaus Tacheles / Kunsthaus Tacheles.iso / jorge.dir / 00001_Script_1 next >
Text File  |  1996-09-29  |  4KB  |  200 lines

  1. global menuName, firstChannel, lastChannel
  2.  
  3. on startMovie
  4.   repeat with p = 3 to 11
  5.     puppetsprite p , true
  6.   end repeat
  7.   put EMPTY into menuName
  8. end startMovie
  9.  
  10. on stopmovie
  11.   hideHilite
  12. end stopmovie
  13.  
  14. on idle
  15.   if menuName = EMPTY then exit
  16.   repeat with x = firstChannel to lastChannel
  17.     if rollover(x) then
  18.       showHilite x
  19.       exit
  20.     end if
  21.   end repeat
  22.   hideHilite
  23. end idle
  24.  
  25. on showHilite which
  26.   puppetSprite 30, TRUE
  27.   set the locV of sprite 30 = the locV of sprite which
  28.   updateStage
  29. end showHilite
  30.  
  31. on hideHilite
  32.   puppetSprite 30, FALSE
  33.   set the locV of sprite 30 = -999
  34.   updateStage
  35. end hideHilite
  36.  
  37. on jumpTo where
  38.   hideHilite
  39.   puppetSound "click"
  40.   updateStage
  41.   cursor 4
  42.   puppetTransition 9,0,4
  43.   go to frame where
  44.   cursor 0
  45.   puppetSound 0
  46. end jumpTo
  47.  
  48. on menuTo where
  49.   hideHilite
  50.   cursor 4
  51.   puppetTransition 9,0,4
  52.   go to frame where
  53.   cursor 0
  54. end menuTo
  55.  
  56. -- go to "label" + ⁿbergang centerOut
  57. on goTo where
  58.   hideHilite
  59.   cursor 4
  60.   puppetTransition 9,0,4
  61.   go to frame where
  62.   cursor 0
  63. end goTo
  64.  
  65. on goMain
  66.   --  hideHilite
  67.   puppetSound "click"
  68.   updateStage
  69.   set the locV of sprite 10 = -999
  70.   set myCursor to -1
  71.   cursor -1
  72.   puppetTransition 9,0,4
  73.   go to frame "MainPlan"
  74.   puppetSound 0
  75.   updateStage
  76. end goMain
  77.  
  78. on flashButton
  79.   puppetSprite the clickOn, TRUE
  80.   puppetSound "click"
  81.   put the name of cast the castNum of sprite the clickOn into rootName
  82.   set the castNum of sprite the clickOn = the number of cast (rootName && "lit")
  83.   updateStage
  84.   waitFor .1
  85.   set the castNum of sprite the clickOn = the number of cast rootName
  86.   puppetSprite the clickOn, FALSE
  87.   puppetSound 0
  88.   updateStage
  89. end flashButton
  90.  
  91. on waitFor seconds
  92.   put the ticks into now
  93.   repeat while the ticks < now + (seconds * 60)
  94.   end repeat
  95. end waitFor
  96.  
  97. -- go to "label" + stopMovie 
  98. -- + flashButton + ⁿbergang edgesIn
  99. on returnTo where
  100.   stopQT
  101.   flashButton
  102.   cursor 4
  103.   puppetTransition 10,0,4
  104.   go to frame where
  105.   cursor 0
  106. end returnTo
  107.  
  108. on returnFromHelp
  109.   flashButton
  110.   global helpReturn
  111.   cursor 4
  112.   puppetTransition 10,0,4
  113.   go to frame helpReturn
  114.   cursor 0
  115. end returnFromHelp
  116.  
  117. on stopQT
  118.   put the castNum of sprite 4 into theCast
  119.   if theCast = 0 then exit
  120.   if the castType of cast theCast = #digitalvideo then
  121.     set the movieRate of sprite 4 = 0
  122.     set the movieTime of sprite 4 = 0
  123.     if the width of sprite 4 > 500 then
  124.       set the loc of sprite 4 = point(-999,-999)
  125.     end if
  126.     updateStage
  127.     puppetSprite 4, FALSE
  128.   end if
  129. end stopQT
  130.  
  131. -- go to the frame + 1
  132. -- stop movie + flashButton
  133. -- ubergang wipeLeft
  134. on goNextFrame
  135.   stopQT
  136.   flashButton
  137.   cursor 4
  138.   puppetTransition 2,1,4
  139.   go to the frame + 1
  140.   cursor 0
  141. end nextFrame
  142.  
  143. on nextArtist
  144.   stopQT
  145.   flashButton
  146.   cursor 4
  147.   puppetTransition 2,1,4
  148.   go to marker(1)
  149.   cursor 0
  150. end nextArtist
  151.  
  152. on nextMenu where
  153.   stopQT
  154.   flashButton
  155.   cursor 4
  156.   puppetTransition 2,1,4
  157.   go to frame where
  158.   cursor 0
  159. end nextMenu
  160.  
  161. -- go to the frame - 1
  162. -- stop movie + flashButton
  163. -- ubergang wipeLeft
  164. on goPrevFrame
  165.   stopQT
  166.   flashButton
  167.   cursor 4
  168.   puppetTransition 1,1,4
  169.   go to the frame -1
  170.   cursor 0
  171. end prevFrame
  172.  
  173. on prevArtist
  174.   stopQT
  175.   flashButton
  176.   cursor 4
  177.   puppetTransition 1,1,4
  178.   go to marker(-1)
  179.   cursor 0
  180. end prevArtist
  181.  
  182. on prevMenu where
  183.   stopQT
  184.   flashButton
  185.   cursor 4
  186.   puppetTransition 1,1,4
  187.   go to frame where
  188.   cursor 0
  189. end prevMenu
  190.  
  191.  
  192. -- on displayMessage theMessage
  193. --   openXlib "Misc_X"
  194. --   if objectP(myXobj) then myXobj(mDispose)
  195. --   put Misc_X(mNew) into myXobj
  196. --   myXobj(mAnswer, theMessage, "","","OK")
  197. --   myXobj(mDispose)
  198. --   closexlib "Misc_X"
  199. -- end displayMessage
  200.